﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Q.M.Finance.Application.IServices;
using Q.M.Finance.Domain.Entity;
using Q.M.Finance.Infrastruecure.Repository;

namespace Q.M.Finance.Write.API.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class Recipient_informationWriteController : ControllerBase
    {
        private readonly IRecipient_informationServices recipient_InformationServices;
        public Recipient_informationWriteController(IRecipient_informationServices recipient_InformationServices)
        {
            this.recipient_InformationServices = recipient_InformationServices;
        }
        /// <summary>
        /// 显示客户信息
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> GetpayerInfo()
        {
           var res=  await recipient_InformationServices.GetpayerInfo();
            return Ok(res);
        }
    }
}
